<template>
    <el-form :model="form" label-width="80px" label-position="left">
        <el-form-item label="用户名：">
            <el-input v-model.trim="form.name" />
        </el-form-item>
        <el-form-item label="密码：">
            <el-input v-model="form.passwd" type="password" autocomplete="off" />
        </el-form-item>
        <el-form-item>
            <el-button type="primary">提交</el-button>
            <el-button>取消</el-button>
        </el-form-item>
    </el-form>
</template>

<script setup>
    import { reactive } from 'vue';
    const form = reactive({
        name: '',
        passwd: ''
    })
</script>